package util;

import org.springframework.context.ApplicationContext;
import org.springframework.context.support.ClassPathXmlApplicationContext;

import service.StartService;

public class FactoryContext {
	public static ApplicationContext ac = null;
	public static ApplicationContext readCof(){
		//StartService  personService;
		if(ac==null){
			ac= new ClassPathXmlApplicationContext("applicationContext.xml");
		}
		return ac;
	}
//	public static StartService service(){
//		return (StartService)ac.getBean("startService");
//	}
//	public static void sendMsg(String jsonStr){
//		StartService startService =(StartService)ac.getBean("startService");
//		startService.send(jsonStr);
//	}
}
